Skip to content

feat(blog): DB 장애 원인과 인덱스 튜닝 글 추가 - #86

Merged
dev-wooyeon merged 1 commit into
masterfrom
codex/db-index-post
Mar 25, 2026
Merged

feat(blog): DB 장애 원인과 인덱스 튜닝 글 추가#86
dev-wooyeon merged 1 commit into
masterfrom
codex/db-index-post

Conversation

@dev-wooyeon

Copy link
Copy Markdown
Owner

변경 내용

  • DB 장애 분석과 인덱스 설계 기준을 정리한 새 글 추가
  • AI 초안을 블로그 톤으로 재구성하고 과한 단정 표현 정리
  • meta.json 추가로 slug, description, tags 등록

의도

  • 슬로우 쿼리, rows_examined, EXPLAIN 중심의 장애 분석 과정을 블로그 글로 정리
  • 실무적으로 모호할 수 있는 인덱스 설계 표현을 더 정확하게 다듬기

영향 범위

  • posts/db-장애의-진짜-원인/**
  • /blog/db-outage-index-root-cause 라우트 추가

검증

  • npm run build
  • (필요 시) npm test
  • 다크/라이트 모드 확인
  • 모바일/데스크톱 확인

체크리스트

  • 작업 단위 브랜치(codex/<task>)에서 진행함
  • 커밋 메시지 규칙(<type>: <한국어 설명>) 준수
  • 관련 이슈/PR 링크를 본문에 연결함

슬로우 쿼리와 rows_examined, EXPLAIN을 바탕으로\n인덱스 설계 문제를 다룬 새 글을 추가했어요.\n\nAI 초안을 블로그 톤에 맞게 재구성하고\n과한 단정은 줄여 기술적 맥락을 보강했어요.
@vercel

vercel Bot commented Mar 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eunu-log Ready Ready Preview, Comment Mar 23, 2026 7:56am

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5d5b08a2d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +69 to +70
SUM_ROWS_EXAMINED AS rows_examined,
SUM_ROWS_SENT AS rows_sent

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clarify that rows_examined here is a digest total

performance_schema.events_statements_summary_by_digest stores aggregated counters per normalized query, so SUM_ROWS_EXAMINED and SUM_ROWS_SENT are totals across all executions. When COUNT_STAR > 1, the later conclusion that a single lookup scanned “74만 건” is no longer supported by this query and can overstate the per-request cost by orders of magnitude. If you want to explain one request’s footprint, this needs an average such as SUM_ROWS_EXAMINED / COUNT_STAR or wording that these are cumulative totals.

Useful? React with 👍 / 👎.

INDEX_NAME,
GROUP_CONCAT(COLUMN_NAME) AS indexed_columns
FROM INFORMATION_SCHEMA.STATISTICS
WHERE TABLE_SCHEMA = 'tableName'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the schema name in the STATISTICS lookup

In INFORMATION_SCHEMA.STATISTICS, TABLE_SCHEMA is the database/schema name, not the table name. As written, readers who follow the placeholder literally for the activity_queue example will get no rows back and won’t be able to reproduce the index-inspection step. This should use the schema name (and optionally add TABLE_NAME = 'activity_queue' if the intent is to inspect just that table).

Useful? React with 👍 / 👎.

@dev-wooyeon
dev-wooyeon merged commit 6c88e4b into master Mar 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant